import Vue from "vue";
import Vuex from "vuex";

import Count from "./modules/Count";
import Movie from "./modules/Movie";
import Actor from "./modules/Actor";
// 引入插件
import createPersistedState from "vuex-persistedstate";

// 使用插件
Vue.use(Vuex);

// 实例化vuex仓库
const store = new Vuex.Store({

  // 引入模块化
  modules:{
    Count,
    Movie,
    Actor
  },
  plugins: [createPersistedState()],
  
});
// 暴露仓库

export default store;
